import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { UserModule } from '../user/user.module'
import { MessageService } from './message.service'
import { Message } from './message.entity'
import { MessageController } from './message.controller'

@Module({
    imports:[
        UserModule,
        TypeOrmModule.forFeature([Message])
    ],
    controllers:[
        MessageController
    ],
    providers:[
        MessageService
    ],
    exports:[
        MessageService
    ]
})
export class MessageModule { }